package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 专项检查隐患信息
 * @Author: jeecg-boot
 * @Date:   2024-05-08
 * @Version: V1.0
 */
@Data
@TableName("tb_base_check_danger")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="专项检查隐患信息")
public class TbBaseCheckDanger implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**所属隐患*/
	@Excel(name = "所属隐患", width = 15, dictTable = "tb_base_danger_investigation", dicText = "danger_name", dicCode = "id")
	@Dict(dictTable = "tb_base_danger_investigation", dicText = "danger_name", dicCode = "id")
    @Schema(description = "所属隐患")
    private String dangerId;
	/**所属任务*/
	@Excel(name = "所属任务", width = 15, dictTable = "tb_base_check_task", dicText = "task_name", dicCode = "id")
	@Dict(dictTable = "tb_base_check_task", dicText = "task_name", dicCode = "id")
    @Schema(description = "所属任务")
    private String taskId;
	/**检查类型*/
	@Excel(name = "检查类型", width = 15, dicCode = "baseCheckType")
	@Dict(dicCode = "baseCheckType")
    @Schema(description = "检查类型")
    private String checkType;
	/**检查项*/
	@Excel(name = "检查项", width = 15, dictTable = "tb_base_check_item", dicText = "check_content", dicCode = "id")
	@Dict(dictTable = "tb_base_check_item", dicText = "check_content", dicCode = "id")
    @Schema(description = "检查项")
    private String checkItemId;
	/**检查项评分细则*/
	@Excel(name = "检查项评分细则", width = 15, dictTable = "tb_base_check_score", dicText = "deduct_illustrate", dicCode = "id")
	@Dict(dictTable = "tb_base_check_score", dicText = "deduct_illustrate", dicCode = "id")
    @Schema(description = "检查项评分细则")
    private String checkScoreId;
	/**检查时间*/
	@Excel(name = "检查时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "检查时间")
    private Date checkDate;
	/**罚款金额*/
	@Excel(name = "罚款金额", width = 15)
    @Schema(description = "罚款金额")
    private Double checkPay;
	/**危害类型*/
	@Excel(name = "危害类型", width = 15, dicCode = "harmType")
	@Dict(dicCode = "harmType")
    @Schema(description = "危害类型")
    private String harmType;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "删除标识")
    private String deleted;
	/**租户ID*/
	private Integer tenantId;
}
